<?php
/**
 * class App_Model_Food
 *
 * @author kim
 */
class App_Model_Food extends App_Model_Abstract
{
    // table name
    protected $_name = 'dine2_food';

    /**
     * list pairs as id => name
     *
     * @return array
     */
    public function listAll()
    {
        $db = $this->getTable()->getAdapter();
        $query = "SELECT `id`, `name` FROM `dine2_food` ORDER BY `name`";
        return $db->fetchPairs($query);
    }

}
